<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<base href="${basePath}">
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分班界面</title>
<link href="semantic/semantic.css" rel="stylesheet" type="text/css">
<link href="static/css/teacher.css" rel="stylesheet" type="text/css">
<script src="static/js/jquery-1.12.4.js" type="text/javascript"></script>
<script src="static/js/jobinfor.js" type="text/javascript"></script>
<script src="semantic/semantic.js" type="text/javascript"></script>
<script src="static/js/student.js" type="text/javascript"></script>
</head>
<body>
	<div class = "gps">
<a class = "home" href="staff?method=forward">首页</a>
<sapn> > </sapn>	
<a href="student?method=selectby">学员管理</a>
</div>
	<!--搜索区域  -->
	<div class="searcherjob" >
			<form>
				<div class="ui form">
					<div class="fields">
						<div class="field">
							<label>&nbsp</label> 
							<input type="text" name="name" value="${param.name }" placeholder="检索班级">
						</div>
						<div class="field">
							<label>&nbsp;</label>
							<button class="ui green button">检索</button>
							<a class="ui green button" href="javascript:addposition()">新增</a>
						</div>
					</div> 
				</div>
			</form>
		</div>
<div class="ui cards" id ="allposit" >
<c:forEach items="${grolist}" var="datas">
  <div class="card" id = "posti">
    <div class="content">
    	<div class="meta" id = "positlogo">
<%--       	<a href="javascript:changeposition(${datas.groupClazzId})"><i class="write square icon"></i></a> --%>
      </div>
      <div class="header"> 
     	 班级：${datas.clazzName}
      </div>
      <div class="tea">
      	老师：
      	${datas.teacherName} 
      </div>
       <div class="count">
      	班级总人数：
      	<a href="group?method=selectname&name=${datas.clazzName}&count=${datas.count}">${datas.count} </a>
      </div>
    </div>
  </div>
  </c:forEach>
</div>
  	<c:if test="${totalPage > 1 }">
			<div class="page">
				<a <c:if test="${page!=1}">href="job?page=1${queryString}"</c:if>
					class="${page == 1?'disable':''}">首页</a> <a
					<c:if test="${page!=1}">href="job?page=${page-1}${queryString}"</c:if>
					class="${page == 1?'disable':''}">上一页</a> <a
					<c:if test="${page!=totalPage}">href="job?page=${page+1 }${queryString}"</c:if>
					class="${page == totalPage?'disable':''}">下一页</a> <a
					<c:if test="${page!=totalPage}">href="job?page=${totalPage }${queryString}"</c:if>
					class="${page == totalPage?'disable':''}">尾页</a> <span>
					${page}/${ totalPage} </span>
			</div>
		</c:if>
	</div>
<div class="ui modal" id = "addposition">
  <div class="header">
  	 新增职位
  </div>
 <div class="teacher-content">
		<form  method="post" class="forms" action ="clazz" id="forms">
		    <div class="field">
		    <label>班级</label>
		    <input type="text" name="name" id="clazzz"  >
		  </div>
		  <div class="field">
		    <label>老师</label>
		   <select  name="staffname" style="width:500px;height:38px;" >
			<c:forEach items="${StaffList}" var="staffPo">
			<option value = "${staffPo.staffId}" ${param.staffname ==staffPo.staffId?'selected':''}  >${staffPo.staffName }
			</c:forEach>
		</select>
		  </div>
		 
		<div class="actions">
		   <div class="ui red deny button">取消</div>
		   
		   <button class="ui green button">确认<i class="checkmark icon"></i></button>
  		</div> 
		</form>
	</div>  
</div>
</body>
</html>